-
Notifications
You must be signed in to change notification settings - Fork 839
Infer dynamic loop bounds from IntegerRangeAnalysis for GPU tile-and-fuse #23448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
19f6438 to
2c51125
Compare
nirvedhmeshram
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the outer logic is what we want, however I think we can largely simplify the logic in getLoopBoundsWithRangeAnalysis by using TensorDynamicDimAnalysis provided in the compiler, you can closely follow BlockDynamicDimensions pass for this.
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/ConfigUtils.cpp
Outdated
Show resolved
Hide resolved
854b90c to
8e985d1
Compare
| getLoopBoundsWithRangeAnalysis(linalgOp, entryPoint); | ||
| SmallVector<int64_t> bounds; | ||
| if (succeeded(maybeBounds)) { | ||
| boundsUsingAnalysis = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this bool will be set true even when the bounds you find are equal to the bounds of getStaticLoopRanges, but what we want is to only set this to true if you are making bounds that are different from the bounds of getStaticLoopRanges.
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/ConfigUtils.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Dialect/GPU/TargetUtils/ConfigUtils.cpp
Outdated
Show resolved
Hide resolved
d1b18ea to
9e9cf26
Compare
…erRangeAnalysis in TAF Signed-off-by: Yash Deshpande <[email protected]>
Added function to determine bounds of dynamic dims in GEMMs using InterRangeAnalysis in Tile & Fuse Pipeline.